package com.zmc.order.infrastructure.dao;

import com.zmc.order.infrastructure.entity.OrderItemEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单项信息
 *
 * @author zmc
 * @email
 * @date 2024-10-09 14:52:02
 */
@Mapper
public interface OrderItemDao extends BaseMapper<OrderItemEntity> {

    void batchSaveOrderItems(@Param("list") List<OrderItemEntity> list);

    void batchUpdateOrderItems(@Param("list") List<OrderItemEntity> list);

    void updateBatchByOrderAndSpu(@Param("orderSn") String orderSn, @Param("items") List<OrderItemEntity> items);
}
